package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitBillListRouter(Router *gin.RouterGroup) {
	BillListRouter := Router.Group("billList").Use(middleware.OperationRecord())
	{
		BillListRouter.POST("createBillList", v1.CreateBillList)   // 新建BillList
		BillListRouter.DELETE("deleteBillList", v1.DeleteBillList) // 删除BillList
		BillListRouter.DELETE("deleteBillListByIds", v1.DeleteBillListByIds) // 批量删除BillList
		BillListRouter.PUT("updateBillList", v1.UpdateBillList)    // 更新BillList
		BillListRouter.GET("findBillList", v1.FindBillList)        // 根据ID获取BillList
		BillListRouter.GET("getBillListList", v1.GetBillListList)  // 获取BillList列表
		BillListRouter.POST("confirmBill", v1.ConfirmBill)         // 账单确认
	}
}
